import { WeaTools } from 'ecCom';

// 获取升级信息
export const getUpgradeInfo = (params = {}) => WeaTools.callApi('/api/upgrade/getUpgradeInfo', 'GET', params);
// 获取使用的语言
export const getActiveLanguage = (params = {}) => WeaTools.callApi('/api/system/language/base/getActiveLanguage', 'GET', params);
// 获取登录信息
export const getLoginInfo = (params = {}) => WeaTools.callApi('/api/portal/login/logininfo', 'POST', params);
// 获取登录表单
export const getLoginForm = params => WeaTools.callApi('/api/hrm/login/getLoginForm', 'POST', params);
// 登录
export const login = params => WeaTools.callApi('/api/hrm/login/checkLogin', 'POST', params);
// 退出
export const logout = (params = {}) => WeaTools.callApi('/api/hrm/login/checkLogout', 'POST', params);
// 公文交换平台登录页面额外配置信息
export const getOdocExchangeLoginSetting = (params = {}) => WeaTools.callApi('/api/odocExchange/exchangeLogin/getLoginSetting', 'POST', params);

// 获取菜单
export const getMenus = (params = {}) => WeaTools.callApi('/api/odocExchange/exchangeLogin/geTopMenuTabList', 'POST', params);
// 获取主题
export const getMyTheme = (params = {}) => WeaTools.callApi('/api/portal/themeCenter/getMyTheme', 'GET', params);
// 获取账号信息
export const getAccount = (params = {}) => WeaTools.callApi('/api/portal/account/getAccount', 'GET', params);
// 设置字体大小
export const setMyFontSize = (params = {}) => WeaTools.callApi('/api/portal/themeCenter/setMyFontSize', 'POST', params);
// 检验非标
export const checkInfo = (params = {}) => WeaTools.callApi('/api/odocExchange/exchangeLogin/getOdocExchangeLicense', 'POST', params);
